package com.core.Comprimento;

import com.core.Comprimento.ComprimentoBase;

public class Metro extends ComprimentoBase {
	
	public Metro(double valueTobeconverted){
		this.valueToBeConverted = valueTobeconverted;
	}
	
	@Override
	public double ToQuilometro(){
		return this.valueToBeConverted/1000;
	}
	
	@Override
	public double ToCentimetro(){
	 return this.valueToBeConverted*100;
	}

	@Override
	public double ToMilimetro(){
	 return this.valueToBeConverted*1000;
	}
	
	@Override
	public double ToPolegada(){
	 return this.valueToBeConverted*39.3701;
	}
	
	@Override
	public double ToJarda(){
	 return this.valueToBeConverted*1.0936;
	}

	@Override
	public double ToPe(){
	 return this.valueToBeConverted*3.2808;
	}

}

